home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / MS_ARCAD.ZIP / ARC6_6.CHP < prev    next >
Text File  |  1993-06-15  |  2KB  |  54 lines

  1. %
  2. #EF
  3. #T15,1,Chapter 6     The Borland Graphics Interface     Pg. 20
  4. #HS,1,4,80,25,11,1
  5. #C4,R5
  6.                            ~W~IVideo Pages And The BGI~Y~I
  7.  
  8.  
  9. On the EGA and VGA adaptors, there is usually enough memory for at least
  10. two video |pages|. This is especially true in the medium and lower
  11. resolution modes.
  12.  
  13. #WN
  14. #C4,R12
  15. Lower resolution modes have more colors available, but there are fewer
  16. pixels on the screen. This ok for most games. In most cases, people enjoy
  17. arcade games more if they have lots of colors than if they have very high
  18. resolution images. This is not always true, but it can be used as a rule
  19. of thumb.
  20.  
  21. #WN
  22. #C4,R18
  23. We will be using multiple video pages in Space Attackers. To help us create
  24. bitmaps that are properly scaled for the particular adaptor, we will draw
  25. our bitmaps on the a |non-visual page| of memory while the user is looking
  26. at the title screen and copyright notice on the |visual page|.
  27.  
  28. #WN
  29. #C4,R23
  30. The functions that give us access to video pages are summarized in
  31. Figure 6.4.
  32.  
  33. #WN
  34. %
  35. #EF
  36. #T15,1,Chapter 6     The Borland Graphics Interface     Pg. 21
  37. #HS,1,4,80,25,11,1
  38. #C2,R5
  39.                                  ~W~IFigure 6.4~Y~I
  40.                              Summary Of The BGI
  41.                         Video Page Control Functions
  42.  
  43. ╔═══════════════════════════════════════════════════════════════════════════╗
  44. ║ ~W~IName                   Purpose~Y~I                                            ║
  45. ╙───────────────────────────────────────────────────────────────────────────╜
  46.   setactivepage()        Sets the page that all of the BGI functions will draw
  47.                          to. This does not have to be the visual page. We can
  48.                          draw to a page that is not currently on the screen.
  49.   setvisualpage()        Sets the visual page. The visual page is the page
  50.                          that can be seen on the screen.
  51.  
  52. #WP
  53. #X
  54.